﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using PloobsEngine.Light;
using PloobsEngine.MessageSystem;

namespace Etapa1.Objects
{
    public class MoveableSpotLight : SpotLight
    {
        public MoveableSpotLight(Vector3 position, Vector3 direction, float coneDecay, float lightRadius, Color Color, float lightAngleCosine, float lightIntensity)
            : base(position,direction,coneDecay,lightRadius,Color,lightAngleCosine,lightIntensity)
        {
        }

        public override bool HandleThisMessageType(SenderType type)
        {
            return true;
        }

        public override void  HandleMessage(Message mes)
        {
                string st = mes.Cod;
                if (st == "direita")
                {
                    position.X +=  1;       
                }
                if (st == "esquerda")
                {
                    position.X -= 1;       
                }
                if (st == "cima")
                {
                }
                if (st == "baixo")
                {
                }

            }
        }

    }

